package com.horizon.common.exception;

import com.horizon.common.constrants.HorizonResultCodeEnum;

/**
 * 通用异常.
 *
 * @author zhaoshb
 * @since 2022/11/30 09:46
 */
public class HorizonException extends Exception {

    private HorizonResultCodeEnum resultCode;

    public HorizonException(HorizonResultCodeEnum resultCode) {
        this.resultCode = resultCode;
    }

    public HorizonException(HorizonResultCodeEnum resultCode, String message) {
        super(message);
        this.resultCode = resultCode;
    }

    public HorizonResultCodeEnum getResultCode() {
        return resultCode;
    }
}
